home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / UTILITY / DO1002.ARJ / ERASE.SCR < prev    next >
Text File  |  1991-12-03  |  1KB  |  33 lines

  1. .pg wi full clr cy
  2.     COMMAND NAME»gray«: »%t« EraseFile »ye«
  3.  
  4.     /ERASE {Filename}
  5. /cw
  6.     »ma«Erase (»ye«delete»ma«) a file from the disk.»#«
  7.  
  8.     This command is the equivalent of the DOS »cy«DEL»#« command.
  9.     However, unlike the DEL command, only »ma«individual files can
  10.     be deleted»#« from the disk. Variables in »cy«{Filename}»#« are
  11.     expanded.
  12.  
  13.     If the command is successful, »%t«DO»#« branches to "»gr«:ERASEOK»#«"
  14.     otherwise it branches to "»re«:ERASEERROR»#«".
  15.  
  16.     If the "»ye«N»#«" token is included, the command will »+re«NOT»#« branch to the
  17.     labels, but will continue on the next line of the script regardless
  18.     of the outcome.
  19. .pg clr
  20.     We'll use the »%t«/ERASE»#« command to delete »cy«EDITOR.TMP»#« that you
  21.     used for editing (»%t«/EDIT»#«).
  22. |/ERASE EDITOR.TMP
  23. :ERASEERROR
  24. .bell ye
  25.  
  26.     OOPS! There was some type of error deleting »ma«EDITOR.TMP»ye«!»#«
  27. /GOTO EraseEnd
  28. :ERASEOK
  29.  
  30.    »ye«EDITOR.TMP»#« has been successfully deleted.
  31. :ERASEEND
  32. /ENDEXEC CLEAR
  33.